#include "maininterface.h"
#include "mainwindow.h"
#include "renderer/rendermanager.h"
#include "datamanager/datamanager.h"
#include "datamanager/fileextensionmanager.h"

using namespace PBVP;

MainInterface::MainInterface(MainWindow *pWin)
{
	m_pMainWin = pWin;
	m_pDataManager = new DataManager();
	m_pRenderManager = new RenderManager();
	m_pEnvironment = &(m_pRenderManager->environment());
	m_pExtensionManager = new FileExtensionManager();
	//m_pDataManager = pWin->getDataManager();
	//m_pRenderManager = pWin->getRenderManager();
	
}

MainInterface::~MainInterface()
{
	delete m_pDataManager;
	delete m_pRenderManager;
	delete m_pExtensionManager;
}
